<br/>
<span style="float:right;padding-right:20px"><a href=# onclick="document.getElementById('render_layout_<%=sid%>').setStyle('display','none');return false">Close</a></span>

<table>
<tr style="vertical-align:top;">
	<td style="border:none">
		<div style="width:245px;">
			<center><span class="boldfont"><%=Match.find(sid).home_team.displayed_name%></span></center>
			<table width="100%">
				<%@home_friends.each do |u|%>
				<tr>
					<td width="25%" style="border:none;vertical-align:middle;padding:4px;height:83px;">
						<fb:profile-pic uid=<%=u.id%>/>
					</td>
					<td width="75%" style="border:none;">
						<%res = user.challenge_status(u,sid)%>
						<%= render :partial=>res[:status],:locals=>{:u=>u,:sid=>sid,:ch=>res[:ch]}%>
					</td>
				</tr>
				<%end%>
			</table>
		 </div>
	</td>
	<td style="border-left:1px #ccc solid;border-top:none;border-bottom:none;border-right:none">
		<div style="width:245px;">
		<center><span class="boldfont"><%=Match.find(sid).away_team.displayed_name%></span></center>
		<table width="100%">
			<%@away_friends.each do |u|%>
			<tr>
				<td width="25%" style="border:none;vertical-align:middle;padding:4px;height:83px;">
					<fb:profile-pic uid=<%=u.id%>/>
				</td>
				<td width="75%" style="border:none;">
					<%res = user.challenge_status(u,sid)%>
					<%= render :partial=>res[:status],:locals=>{:u=>u,:sid=>sid,:ch=>res[:ch]}%>
				</td>
			</tr>
			<%end%>
		</table>
		 </div>
	</td>
</tr>
<tr>
  <td colspan=2 style="border:none;">
    <%=render :partial=>'place_ch_link',:locals=>{:sid=>sid,:u=>nil}%>
  </td> 
</tr>
</table>
